window.addEvent('domready', function() {
	//
    // Set up our dynamic navigation menu
    //
    
    var menus = $$(".navMenuBody");
	var menuSliders = new Array();
    
    menus.each(function (m) {
        title = $(m.id);
        
        //
        // Only create a nav menu if the element has a corresponding
        // title element
        //
        
        if(title)
        {
        	menuSliders[m.id] = new Fx.Slide(m);
            menuSliders[m.id].hide();
            
            title.addEvent('click', function() {
            	menuSliders[this.id].toggle();
            });
        };
    });
});
